import { getChannelTypes } from '/imports/models/ChannelTypes';

Template.header_explore.helpers({
  channelTypes: function () {
    const arr = [{
      name: 'all',
      display: '全部'
    }];
    const channelTypes = getChannelTypes();
    channelTypes.map((item) => {
      arr.push(item);
    });
    return arr;
  }
});